<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Page 2</title>
</head>
<body>
    <div id="dataDisplay"></div>

    <script>
        function loadData() {
            const storedData = localStorage.getItem('storedData');
            if (storedData) {
                document.getElementById('dataDisplay').textContent = storedData;
            } else {
                document.getElementById('dataDisplay').textContent = 'No data found';
            }
        }

        window.onload = loadData; // 自动加载数据
    </script>
</body>
</html>